<template>
  <div class="gerSingerBox">
    <div class="gerSingerTitleBox">
      <span class="gerSingerTitle">入驻歌手</span>
      <span>查看全部 ></span>
    </div>
    <ul>
      <li v-for="item in gerSingerList" :key="item.id" class="gerSingerItem">
        <img class="gerSingerItemPic" :src="item.picUrl" alt="" />
        <div class="gerSingerItemInformation">
          <p class="gerSingerItemName">{{ item.name }}</p>
        </div>
      </li>
    </ul>
    <div class="musician"><i>申请成为网易音乐人</i></div>
  </div>
</template>

<script>
import { gerSinger } from "@/api";
export default {
  data() {
    return {
      gerSingerList: [],
    };
  },
  created() {
    this.getgerSinger();
  },
  methods: {
    getgerSinger() {
      gerSinger({ limit: 5 }).then((res) => {
        // console.log(123, res);
        this.gerSingerList = res.artists;
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.gerSingerBox {
  margin-top: 15px;
  .gerSingerTitleBox {
    height: 23px;
    margin: 0 20px;
    border-bottom: 1px solid #ccc;
    color: #333;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    .gerSingerTitle {
      font-weight: 700;
    }
  }
  .gerSingerItem {
    display: flex;
    margin-top: 14px;
    cursor: pointer;
    margin-left: 20px;
    .gerSingerItemPic {
      width: 62px;
      height: 62px;
    }
    .gerSingerItemInformation {
      font-size: 14px;
      font-weight: 700;
      width: 133px;
      height: 60px;
      padding-left: 14px;
      border: 1px solid #e9e9e9;
      border-left: none;
      .gerSingerItemName {
        margin-top: 8px;
      }
    }
  }
  .musician {
    margin:14px 0 0 20px;
    border-radius: 4px;
    color: #333;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    overflow: hidden;
    padding: 0 5px 0 0;
    cursor: pointer;
    background: url("./../../assets/imges/backgroundStripe.png") no-repeat right -100px;
    i {
      width: 170px;
      height: 31px;
      padding: 0 15px 0 20px;
      font-size: 12px;
      line-height: 31px;
      background: url("./../../assets/imges/backgroundStripe.png") no-repeat 0 -59px;
      display: inline-block;
    }
  }
}
</style>